package com.intel.two.bo.smarthome;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @BelongsProject: intelligentcommunity
 * @BelongsPackage: com.intel.two.bo.smarthome
 * @Author: yanhongwei
 * @CreateTime: 2022-10-16  00:09
 * @Description: TODO
 * @Version: 1.0
 */


@Data
@AllArgsConstructor
@NoArgsConstructor
public class HouseholdBo {


    @ExcelProperty(value = "ID")
    @ColumnWidth(value = 20)
    private Integer household_id;


    @ExcelProperty(value = "家居名称")
    @ColumnWidth(value = 20)
    private String household_name;

    @ExcelProperty(value = "价格")
    @ColumnWidth(value = 20)
    private double household_price;

    @ExcelProperty(value = "出厂日期")
    @ColumnWidth(value = 20)
    @DateTimeFormat(pattern = "yyyy-MM-dd")   // springmvc 接受日期字段格式
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")  // jackson 响应的日期格式
    private Date household_lfdate;   //出厂日期


    @ExcelProperty(value = "保修单id")
    @ColumnWidth(value = 20)
    private Integer guarantee_id;  // 保修单id
//    @ExcelProperty(value = "维修人员id")
//    @ColumnWidth(value = 20)
//    private Integer serviceman_id; // 维修人员

    @ExcelProperty(value = "家居照片")
    @ColumnWidth(value = 20)
    private String household_pic; //家居照片

    @ExcelProperty(value = "保修工姓名")
    @ColumnWidth(value = 20)
    private String serviceman_name;

    @ExcelProperty(value = "保修公司")
    @ColumnWidth(value = 20)
    private String serviceman_com;

    @ExcelProperty(value = "维修电话")
    @ColumnWidth(value = 20)
    private String serviceman_tel;

    @ExcelProperty(value = "家居照片")
    @ColumnWidth(value = 20)

    private String serviceman_pic;

    @ExcelProperty(value = "离职状态")
    @ColumnWidth(value = 20)
    private Integer serviceman_isdepar;


}
